package com.dick.base.parameter;

import com.dick.base.util.ValidateMessageCodes;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * 字典修改parameter
 * @desc    字典修改参数，id为空表示新增，id非空表示修改
 * @project 巡视与党风廉政建设系统
 * @company 北京远桥科技有限公司
 * @author  wanglei
 * @version 1.0
 * @date    2021-06-03
 */
@Data
public class DictParameter {

    private Long id;
    @Size(min = 1, max = 64, message = ValidateMessageCodes.DICT_CODE_SIZE)
    @NotEmpty(message = ValidateMessageCodes.DICT_CODE_EMPTY)
    private String code;
    @Size(min = 1, max = 64, message = ValidateMessageCodes.DICT_NAME_SIZE)
    @NotEmpty(message = ValidateMessageCodes.DICT_NAME_EMPTY)
    private String name;
}
